#ifndef PARTICLEMANAGEMENT_H
#define PARTICLEMANAGEMENT_H
#include "misc.h"
#include "particle.h"
class Particle;
class ParticleManagement
{
    QVector<Particle*> *vecParticles;
public:
    ParticleManagement();
    ParticleManagement(int n = 0);
    QVector<Particle*>* getParticles(){return vecParticles;};
    ~ParticleManagement();
    int getSize(){return vecParticles->size();};
    QVector3D getPos(int pos);
    int resize(int size);
    int addParticle(Particle *p);
    static Particle* createParticle(QVector3D pos,QVector3D dir);
    static QVector3D generateRandomQVector3D();
    static Particle* generateRandomParticle();
    int fillWithParticles(int n);
    void moveParticlesInTime(double t);
};

#endif // PARTICLEMANAGEMENT_H
